package STUDENT.NGUYENHUUTHANG.STRUCTURE_PROGRAMMING.EXAMPLES;

import java.util.Scanner;

public class convert {

	public static void main(String[] args) {
		System.out.println("Chuyển đổi từ Kilogram sang Pounds:");
		System.out.println("Nhap so Kilogram: ");
		Scanner sc = new Scanner(System.in);
		String kilogram = sc.nextLine();
		if (kilogram.isEmpty()) {
			System.out.println("Ban chua nhap!");
		} else {
			double a = Double.parseDouble(kilogram);
			if (a < 0) {
				System.err.println("Ban nhap sai!");
			}
			else {
				double b = 2.2*a;
				System.out.println("Ket qua: " + a + " kg = " + b + " pound");
			}
		}
	}
}
